package com.example.myapplication.common;

/**
 * @author fyliu
 * @qq 879829564
 * @create 2023/6/27
 */
public enum ResEnum {

    SUCCESS(200, "成功"),
    Fail(-1, "失败"),

    PARAMS_IS_NULL(301,"参数为空"),


    NOPERMISSION(401,"无权限"),
    USERNAME_PASSWORD_ERROR(402,"用户名密码错误"),

    INSUFFICIENT_AUTHENTICATION(701,"权限不足,是否重新登录");


    ResEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private int value;
    private String desc;

    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
